package com.icefish.dao;
import com.icefish.bean.Shopping_cart;
import com.icefish.bean.fastjsonParse.addShopCartToOrders.InsertReturnInfo;

import java.util.ArrayList;

public interface Shopping_cartDao {
    //添加商品到购物车
    boolean insertGoodTOCart(Shopping_cart shopping_cart)throws Exception;

    //根据商品id和用户id获取购物车商品信息
    InsertReturnInfo selectReturnInfo(Integer goodId,Integer userId)throws Exception;

    ArrayList<Shopping_cart> selectAllShopCartByUserId (Integer userId) throws Exception;

    boolean deleteById (Integer shopping_cart_id) throws Exception;
}
